/**
 * @Title: OrderRefundDao
 * @Package cn.com.yiqi.wsc.dao.order
 * @Description: TODO
 * Copyright: Copyright (c) 2016
 * Company: 成都壹柒互动科技有限公司
 * @author 会员系统组-林威
 * @date 2017/3/15 10:50
 * @version V1.0
 */
package cn.com.yiqi.wsc.dao.order;

import cn.com.artemis.framework.base.commons.persistence.CrudDao;
import cn.com.yiqi.wsc.Ro.PortalOrderRefundVO;
import cn.com.yiqi.wsc.Ro.RefundItemVO;
import cn.com.yiqi.wsc.dao.order.criteria.OrderRefundCriteria;
import cn.com.yiqi.wsc.entity.order.OrderRefund;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;


/**
 * @author 会员系统组-林威
 * @ClassName: OrderRefundDao
 * Description: TODO
 * @date 2017/3/15 10:50
 */
@Repository
public interface OrderRefundDao extends CrudDao<OrderRefund> {

    List<RefundItemVO> selectRefundItemVOList(@Param("userId") Integer userId, @Param("id") Integer id,@Param("url") String url);

    /**
     * 分页查询
     *
     * @param criteria 查询条件
     * @return
     */
    List<PortalOrderRefundVO> pageList(OrderRefundCriteria criteria);

    /***/
    OrderRefund findByOrderSubId(Integer orderSubId);

    /**
     * 获取退款金额
     *
     * @param orderRefund
     * @return
     */
    OrderRefund getRefundAmount(OrderRefund orderRefund);
}
